//
//  AnalyticsManager.h
//  suRead
//
//  Created by colin on 2019/2/28.
//  Copyright © 2019 bao. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

static NSString *AnalyticsAppKey = @"zm1033-011";
static NSString *AnalyticsOrgId = @"zm1033";

typedef NS_ENUM(NSInteger, AnalyticsEventType) {
    AnalyticsEventType_comeIn, //新闻详情页进入事件
    AnalyticsEventType_leave, //新闻详情页离开事件
    AnalyticsEventType_praise, //点赞事件
    AnalyticsEventType_forward, //转发事件
    AnalyticsEventType_comment, //评论事件
    AnalyticsEventType_playVideo //列表新闻播放事件
};

@interface AnalyticsManager : NSObject
+ (void)event:(AnalyticsEventType)type targetId:(NSString *)targetId url:(NSString *)url;
+ (void)eventComment:(NSString *)targetId url:(NSString *)url targetUrl:(NSString *)targetUrl text:(NSString *)text;
@end

NS_ASSUME_NONNULL_END
